package team.tunan.service;

import team.tunan.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import team.tunan.entity.dto.UserDTO;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author sqx
 * @since 2024-01-01
 */
public interface IUserService extends IService<User> {
    // 用户登录
    UserDTO getUser(String account, String password);

    User getUserById(Integer id);

    // 用户列表
    List<User> getAllUser(HttpServletRequest request);

    // 新增用户
    int add(User user);

    //修改用户信息
    int update(User user);

    int del(Integer id);


}
